package order.utils;

import order.dao.adminDao;
import order.dao.loginDao;
import order.pojo.admin;
import order.pojo.customer;
import org.junit.Test;

import java.sql.Connection;


public class text {




    @Test
    public void selectadmin() throws Exception {
    Connection con=null;
        admin admin = new admin();
        DbUtil dbUtil = new DbUtil();
        System.out.println("=>q");
        con=dbUtil.getCon();
        loginDao loginDao = new loginDao();
        admin= loginDao.selectAdminBtId(con);
        System.out.println(admin);

    }

    @Test
    public void querryCustomer() throws Exception {
        Connection con=null;
        DbUtil dbUtil = new DbUtil();
        System.out.println("=>q");
        con=dbUtil.getCon();
        adminDao admin=new adminDao();
       admin.querryAllAccount(con);


    }
    @Test
    public void customer() throws Exception {
        Connection con=null;
        customer customer = new customer();
        DbUtil dbUtil = new DbUtil();
        System.out.println("=>q");
        con=dbUtil.getCon();
        loginDao loginDao = new loginDao();
        customer= loginDao.customerLogin(con);
        System.out.println(customer);

    }
}

